package com.situ.ssm.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.situ.ssm.entity.User;
import com.situ.ssm.service.IUserService;

@Controller
@RequestMapping("/user")
public class UserController {
	@Autowired
	private IUserService userService;
	
	
	@RequestMapping("/selectAll")
	@ResponseBody
	public List<User> selectAll(){
		List<User> list = userService.selectAll();
		return list;
		
	}

}
